<%-- 
    Document   : Receipt
    Created on : Jul 31, 2013, 4:02:02 PM
    Author     : appi
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="beans.item" %>
<%@page import="beans.Custemer" %>
<%@page import="java.lang.Float" %>           |
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body style="background-color: antiquewhite">
        <h2>hello...
            <c:out value="${sessionScope.user.cfname}"></c:out>&nbsp;
            <c:out value="${sessionScope.user.clname}"></c:out></h2>
        <center>
            <table align="center" style="background-color:rgba(50%,30%,20%,0.5);box-shadow:0px 0px 80px white;border-radius: 0% 20% 0% 20%;">
                <thead style="color:brown;text-shadow:10px 10px 3px grey;font-size:20px;"><h2 style="font-family: Segoe; color: brown;">receipt...</h2>

                <th>
                    Item name:
                </th>
                <th>
                    Item quantity:
                </th>
                <th>
                    Item price:
                </th>
                <th>
                    total:
                </th>
                <th>
                    delivery date:
                </th>
                </thead>



                
                <c:forEach items="${sessionScope.cart}" var="item">
                    <tr>
                    <td>
                        <c:out value="${item.iname}"></c:out>
                        </td>
                        <td>
                        <c:out value="${item.iqty}"></c:out>
                        </td>
                        <td>
                        <c:out value="${item.iprice}"></c:out>
                        </td>
                        <td>
                        <c:out value="${item.iqty*item.iprice}"></c:out>
                        </td>
                        <td>
                        <c:out value="${sessionScope.deldate}"></c:out>
                        </td>
                        
                    </tr>  
                </c:forEach>
            
        </table>
        <c:out value="final total is: ${sessionScope.tot}"></c:out>
    </center>
</body>
</html>
